package a.b;

import jfdi.JsonLoader;
import jfdi.Node;
import jfdi.NodeActivity;
import util.Mlog;
import android.os.Bundle;

public class MainActivity extends NodeActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Mlog.enableAll();
        Node n = JsonLoader.loadLayout(this, R.raw.mainlayout);
        Mlog.i("main", "parsed node: ", n);
        setNode(n);
//        NodeGroup ng = new NodeGroup(this);
//        int n = 100;
//        for (int i = 0; i < n; i++) {
//            LabelNode ln = new LabelNode(this);
//            ln.setText("Node"+i);
//            ng.attachNode(ln);
//        }
//        setNode(ng);
    }
}